
<div class="main_content" style="width:58%;float:right">
	<div id="personal_stream">
		<h2 style="padding-left:14%">Personal Stream</h2>
		<div class="message_box_send">
			<%= render 'entities/public_popsicle_form' %>
		</div>
		
		<% @public_messages.each do |m| %>
			<%= render :template => "popsicles/_show_clusters", :locals => { :message => @m = m, :type => @type = "public" } %>
		<% end %>
		
	</div>
</div>
<div class="content_left">
	<div class="sidebar_container">
		<h3>Personal Information</h3>		
		<p>
		  <b>Name:</b><%= @entity.name %>
		</p>
		<p>
		  <b>Description:</b><%= @entity.description %>
		</p>
		<p>
		  <b>Tagline:</b><%= @entity.tagline %>
		</p>
		<% unless @entity.audio_welcome.url.scan(/(?=missing)/).length > 0 %>
			<p><%= link_to "Play Audio Message", @entity.audio_welcome.url %></p>
		<% end %>	
		<%= link_to 'Edit your profile', edit_entity_path(@entity) %></br>
		<%= link_to 'Edit your privacy settings', edit_privacy_path %></br>
		<%= link_to 'Change your password', change_password_path %> 
	</div>
	
	<div class="sidebar_container">
		<h3>Friends</h3>
		<ul>
		<% @puddles.each do |puddle| %>			
			<li><%= puddle.name %>			
				<ol>
				<% puddle.puddleMembers.each do |member| %>			
					<li><%= link_to member.name, show_friend_path(member.id), :class => "entity_link" %></li>			
				<% end %>
				</ol>
			</li>
		<% end %>
		</ul>
		<% c = Friendship.find_all_by_friend_id_and_accepted(@entity.id, false).count.to_s %>
		<%= link_to("View friend requests (" + c + " new)", friend_requests_path(@entity.id)) %> &nbsp
		<%= link_to("Organise friends", organise_friends_path) %>
	</div>
	
	<div class="sidebar_container">
		<h3>Groups</h3>
		<ul>
		<% @groups.each do |group| %>
			<li><%= link_to(group.name, show_friend_path(group.id), :class => 'entity_link', :title => 'view ' + group.name + ' page') %></li>
		<% end %>
		</ul>
		<%= link_to("Create a new group", new_entity_path) %>
	</div>
	
	<div class="sidebar_container">
		<h3>Private Messages</h3>
		<ul>
		<% m = @entity.new_messages.count.to_s %>
		<li><%= link_to("View received private messages (" + m + " new)", view_private_messages_path(@entity.id)) %></li>
				<li><%= link_to("View sent private messages", view_sent_messages_path(@entity.id)) %></li> 
		<li><%= link_to("Send a private message", send_private_messages_path(@entity.id)) %></li>
		<li> <%= link_to("Send a group message", send_group_messages_path(@entity.id)) %></li>
		</ul>
	</div>
	
	<div class="sidebar_container">
		<h3>Miscellaneous</h3>
		<ul>
			<li><%= link_to("Send Feedback", feedback_form_path, :accesskey=>"9") %></li>
			<li><%= link_to("Live HTML Chat", html_chat_path) %></li>
		</ul>
	</div>
</div>
<div id="wrapper"></div>


